module Wondercap
  
  module HashMixin
    
    def add?(hash)
      hash.each do |k,v|
        self[k] = v unless self.key? k
      end
    end
    
    def add(hash)
      hash.each do |k,v|
        self[k] = v
      end      
    end
    alias_method :+, :add
    
    def del(hash)
      hash.each do |k,v|
        self.delete k
      end
    end
    alias_method :-, :del    
    
  end
  
end